﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using MedicalCare.EntityDefinitions.Entities;

namespace MedicalCare.EntityMappings.EntityMaps
{
    public class EquipmentTypeMapping : ClassMap<EquipmentTypeEntity>
    {
        public EquipmentTypeMapping()
        {
            Table("Equipment_Type");
            Id(x => x.Id).Column("Id").Not.Nullable();
            Map(x => x.Name).Column("Name");
            Map(x => x.Comment).Column("Comment");
            Map(x => x.CreateUser).Column("CreateUser");
            Map(x => x.CreateDT).Column("CreateDT");
            Map(x => x.ModifyUser).Column("ModifyUser");
            Map(x => x.ModifyDT).Column("ModifyDT");
            Map(x => x.Valid).Column("Valid");
        }
    }
}